package com.preskool.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class SalaryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SalaryExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andSalidIsNull() {
            addCriterion("salid is null");
            return (Criteria) this;
        }

        public Criteria andSalidIsNotNull() {
            addCriterion("salid is not null");
            return (Criteria) this;
        }

        public Criteria andSalidEqualTo(Integer value) {
            addCriterion("salid =", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidNotEqualTo(Integer value) {
            addCriterion("salid <>", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidGreaterThan(Integer value) {
            addCriterion("salid >", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidGreaterThanOrEqualTo(Integer value) {
            addCriterion("salid >=", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidLessThan(Integer value) {
            addCriterion("salid <", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidLessThanOrEqualTo(Integer value) {
            addCriterion("salid <=", value, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidIn(List<Integer> values) {
            addCriterion("salid in", values, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidNotIn(List<Integer> values) {
            addCriterion("salid not in", values, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidBetween(Integer value1, Integer value2) {
            addCriterion("salid between", value1, value2, "salid");
            return (Criteria) this;
        }

        public Criteria andSalidNotBetween(Integer value1, Integer value2) {
            addCriterion("salid not between", value1, value2, "salid");
            return (Criteria) this;
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Integer value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Integer value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Integer value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Integer value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Integer value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Integer> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Integer> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Integer value1, Integer value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Integer value1, Integer value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andFulNameIsNull() {
            addCriterion("ful_name is null");
            return (Criteria) this;
        }

        public Criteria andFulNameIsNotNull() {
            addCriterion("ful_name is not null");
            return (Criteria) this;
        }

        public Criteria andFulNameEqualTo(String value) {
            addCriterion("ful_name =", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameNotEqualTo(String value) {
            addCriterion("ful_name <>", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameGreaterThan(String value) {
            addCriterion("ful_name >", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameGreaterThanOrEqualTo(String value) {
            addCriterion("ful_name >=", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameLessThan(String value) {
            addCriterion("ful_name <", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameLessThanOrEqualTo(String value) {
            addCriterion("ful_name <=", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameLike(String value) {
            addCriterion("ful_name like", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameNotLike(String value) {
            addCriterion("ful_name not like", value, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameIn(List<String> values) {
            addCriterion("ful_name in", values, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameNotIn(List<String> values) {
            addCriterion("ful_name not in", values, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameBetween(String value1, String value2) {
            addCriterion("ful_name between", value1, value2, "fulName");
            return (Criteria) this;
        }

        public Criteria andFulNameNotBetween(String value1, String value2) {
            addCriterion("ful_name not between", value1, value2, "fulName");
            return (Criteria) this;
        }

        public Criteria andGenderIsNull() {
            addCriterion("gender is null");
            return (Criteria) this;
        }

        public Criteria andGenderIsNotNull() {
            addCriterion("gender is not null");
            return (Criteria) this;
        }

        public Criteria andGenderEqualTo(String value) {
            addCriterion("gender =", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotEqualTo(String value) {
            addCriterion("gender <>", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThan(String value) {
            addCriterion("gender >", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThanOrEqualTo(String value) {
            addCriterion("gender >=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThan(String value) {
            addCriterion("gender <", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThanOrEqualTo(String value) {
            addCriterion("gender <=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLike(String value) {
            addCriterion("gender like", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotLike(String value) {
            addCriterion("gender not like", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderIn(List<String> values) {
            addCriterion("gender in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotIn(List<String> values) {
            addCriterion("gender not in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderBetween(String value1, String value2) {
            addCriterion("gender between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotBetween(String value1, String value2) {
            addCriterion("gender not between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andJoiningDateIsNull() {
            addCriterion("joining_date is null");
            return (Criteria) this;
        }

        public Criteria andJoiningDateIsNotNull() {
            addCriterion("joining_date is not null");
            return (Criteria) this;
        }

        public Criteria andJoiningDateEqualTo(Date value) {
            addCriterionForJDBCDate("joining_date =", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("joining_date <>", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateGreaterThan(Date value) {
            addCriterionForJDBCDate("joining_date >", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("joining_date >=", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateLessThan(Date value) {
            addCriterionForJDBCDate("joining_date <", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("joining_date <=", value, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateIn(List<Date> values) {
            addCriterionForJDBCDate("joining_date in", values, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("joining_date not in", values, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("joining_date between", value1, value2, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andJoiningDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("joining_date not between", value1, value2, "joiningDate");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Double value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Double value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Double value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Double value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Double value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Double value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Double> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Double> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Double value1, Double value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Double value1, Double value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("`status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("`status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("`status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("`status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("`status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("`status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("`status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("`status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("`status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("`status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("`status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("`status` not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}